package com.junyuan.gsp.bean;

import lombok.Data;

@Data
public class Result
{
    public static final Result SUCCESS = new Result(0, "", null);

    private int code = 0;
    private int count;
    private String msg = "";
    private Object data;

    public Result(Object data, int count)
    {
        this.data = data;
        this.count = count;
    }

    public Result(int code, String msg, Object data)
    {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public Result(Object data)
    {
        this.code = 0;
        this.msg = "";
        this.data = data;
    }

}
